package spring.application;

import org.mortbay.jetty.Server;
import org.mortbay.jetty.webapp.WebAppContext;

public class ApplicationStart {
	/**
	 * The main method.
	 *
	 * @param args the arguments
	 * @throws Exception the exception
	 */
	public static void main(String[] args) throws Exception{
		System.setProperty("org.mortbay.util.URI.charset", "ISO-8859-1");
		System.setProperty("net.spy.log.LoggerImpl", "net.spy.memcached.compat.log.Log4JLogger");
		Server server = new Server(8080);
		WebAppContext wac = new WebAppContext("./src/main/webapp/", "/");
		server.setHandler(wac);
		server.start();
		server.join();
	}
}
